<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>邀请好友</title>
    <link rel="stylesheet" href="static/css/aui.2.0.css">
    <link rel="stylesheet" href="static/css/alert.css">
    <link rel="stylesheet" href="static/css/share.css">
</head>
<body>
<section class="title-box">
    <div class="title-max">多卖宝</div>
    <div class="title-little">消费多返利多</div>
</section>
<section class="success-box">
    <img src="static/img/user.jpg" class="user-pic" alt="">
    <div class="share-content">
        <div class="success-title">注册成功！</div>
        <div class="share-line">
            <div class="line"></div>
            <div>全场通用</div>
            <div class="line"></div>
        </div>
        <div class="success-text">
            <p>邀请码</p>
            <p class="user-res-code">123123456</p>
        </div>

        <div class="pull-hongbao">下载多卖宝</div>
    </div>
</section>
<section class="success-rule">
    <div class="rule-title">规则:</div>
    <ul class="rule-box">
        <li class="rule-list">
            1、该活动仅用于多卖宝客户端新用户；
        </li>
        <li class="rule-list">
            2、请下载多卖宝app时，登录时输入的手机号码与注册时的号码一致；
        </li>
        <li class="rule-list">
            3、注册时通过输入注册码也可以领取现金红包，每人仅供使用一次；
        </li>
        <li class="rule-list">
            4、活动解释权归多卖宝所有
        </li>
    </ul>
</section>
<script src="lib/jquery-3.0.0.min.js"></script>
<script src="static/js/config.js"></script>
<script src="static/js/alert.js"></script>
<script src="static/js/function.js"></script>
<script>

    var loading = dialog.loading();
    var userInfoId = locationSearcher('invitationidId');
    $.ajax({
        url:C.interface.getShareUserInfo,
        type:'post',
        dataType:'json',
        data:{
            phone:userInfoId
        },
        complete:function () {
            loading.close();
        },
        success:function (response) {
            if (response.errorCode == '200'){
                var data = response.data;
                var userImgUrl = data.HEAD_IMG;
                var userRegisteCode = data.PHONE;
                $('.user-pic').attr('src',userImgUrl);
                $('.user-res-code').html(userRegisteCode);





            }else {
                dialog.tusiError(response.errorMsg);
            }
        }
    });


</script>
</body>
</html>